package com.springboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.springboot.model.po.Food;

@Mapper
public interface FoodMapper {
	@Select("select * from food where foodId = #{foodId}")
	public Food getFoodById(@Param("foodId")int foodId);
	
	@Select("select * from food where businessId=#{businessId} order by foodId")
	public List<Food> listFoodByBusinessId(@Param("businessId")Integer businessId);
}
